package owned

import (
	"github.com/gin-gonic/gin"
	"shimmer/neusoft_club_backend/controllers/utils"
	"shimmer/neusoft_club_backend/dao/domain"
	"shimmer/neusoft_club_backend/services"
)

func findAllOwnedClub(c *gin.Context) {
	_,err := domain.GetUserFromContext(c)
	if err != nil {
		services.AbortWithError(c,err)
		return
	}
	_, err = utils.GetPaginationFromContext(c)
	if err != nil {
		services.AbortWithError(c,err)
		return
	}
	panic("not implemented")
}

func ConfigureUserClubOwnedController(r *gin.RouterGroup){
	r.GET("/",findAllOwnedClub)
}
